// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ReviewEntity generated by hbm2java
 */
@Entity
@Table(name = "review_entity", catalog = "magento")
public class ReviewEntity implements java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private Short entityId;
	private String entityCode;
	private Set reviews = new HashSet(0);

	public ReviewEntity() {
	}

	public ReviewEntity(String entityCode) {
		this.entityCode = entityCode;
	}

	public ReviewEntity(String entityCode, Set reviews) {
		this.entityCode = entityCode;
		this.reviews = reviews;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "entity_id", unique = true, nullable = false)
	public Short getEntityId() {
		return this.entityId;
	}

	public void setEntityId(Short entityId) {
		this.entityId = entityId;
	}

	@Column(name = "entity_code", nullable = false, length = 32)
	public String getEntityCode() {
		return this.entityCode;
	}

	public void setEntityCode(String entityCode) {
		this.entityCode = entityCode;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "reviewEntity")
	public Set getReviews() {
		return this.reviews;
	}

	public void setReviews(Set reviews) {
		this.reviews = reviews;
	}

}
